package org.example.learningplanassistant.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 学习计划表
 * </p>
 *
 * @author gcbsh
 * @since 2025-03-25
 */
@Getter
@Setter
@TableName("learning_plans")
public class LearningPlans implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 学习计划id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 课程id
     */
    @TableField("course_id")
    private Integer courseId;

    /**
     * 开始时间
     */
    @TableField("start_date")
    private LocalDate startDate;

    /**
     * 结束时间
     */
    @TableField("end_date")
    private LocalDate endDate;

    /**
     * 状态
     */
    @TableField("status")
    private String status;
}
